package commands;

import model.Engine;

/**
 * Commande destinee a augmenter le nombre de temps par mesure du moteur du metronome.
 */
public class ControllerToEngineIncTPBCommand implements Command {

	private Engine engine;
	
	public ControllerToEngineIncTPBCommand(Engine engine) {
		this.engine = engine;
	}
	
	public void execute() {
		engine.setTimesPerBar(engine.getTimesPerBar() + 1);
	}
	
}
